package com.roadjava.tutor.mapper;

import com.roadjava.tutor.bean.dto.UserDTO;
import com.roadjava.tutor.bean.entity.Member;
import com.roadjava.tutor.bean.vo.UserVO;

import java.util.List;

/**
 * @author zhaodaowen
 * @see <a href="http://www.roadjava.com">乐之者java</a>
 */
public interface MemberMapper {
    int insert(Member member);
    /**
     * 登录
     */
    Member validateLogin(UserDTO userDTO);

    Member selectOneById(Long id);

    int update(Member member);

    List<Member> listByPage(UserDTO dto);

    long selectCount(UserDTO dto);
}
